<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>  
<%@ page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn">
<head>
<title>个人资料管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="Content-Language" content="gb2312" />
<link href="skin1/css/header.css" type="text/css" rel="stylesheet"/>
<link href="skin1/css/invite.css" type="text/css" rel="stylesheet"/>
<link href="skin1/css/public.css" type="text/css" rel="stylesheet"/>
<script type='text/javascript' src='javascript/image.js'></script>
</head>
<body>
<div class=pageContent>

<jsp:include flush="true" page="../include/header.jsp"></jsp:include>

<div class=main>
<div class=mainLeft2>
<div class="tp7 tp7n">
  <h3>个人资料</h3>
  <div id="iv"><img src="upload/headphoto/${sessionScope.user.photoURL}" alt="img" width="70" /><span>昵 称：</span>${sessionScope.user.username}<br/>
		<span>等 级：</span><strong>${sessionScope.user.userData.grade }</strong> 级<br/>
		<span>人 气：</span><strong>${sessionScope.user.userData.popularity }</strong> 点<br/>
		<span>积 分：</span><strong>${sessionScope.user.userData.score }</strong> 分<br/>
		<span>心 情：</span>
<select name="select" style="width: 75px;">
  <option selected="selected">好</option>
</select>
<br/>
		<span>签 名：</span><c:out value="${sessionScope.user.signment}"/></div>
</div>
<div class="tp7">
  <h3>功&nbsp;能</h3>
  <ul class="iv1">
    <li><a href="#">我的评论</a>&nbsp;[10]</li>
    <li><a href="#">我的留言</a>&nbsp;[10]</li>
    <li><a href="#">我的话题</a>&nbsp;[10]</li>
    <li><a href="#">我的请求</a>&nbsp;[10]</li>
    <li><a href="#">我的消息</a>&nbsp;[10]</li>
    <li><a href="#">我的活动</a>&nbsp;[10]</li>
  </ul>
  </div>
<div class="tp7">
  <h3>谁来看过我</h3>
  <div id="iv2"><a href="#">谁看我</a> <a href="#">我看谁</a> <a href="#">随机配</a><br/><img src="skin1/images/user01.jpg" alt="img" width="53"/><img src="skin1/images/user01.jpg" alt="img" width="53"/><img src="skin1/images/user01.jpg" alt="img" width="53"/><img src="skin1/images/user01.jpg" alt="img" width="53"/></div>
</div>
</div>

<div class=mainright2>
<div class="tp7 tp7n">
  <h3>上传头像</h3>
  
  <form action="user.do?method=uploadPhoto" method="post" id="form1" enctype="multipart/form-data" onsubmit="return validate();">
  <div id="zl">
  		<div style="color:red;">
									${requestScope.msg}
								</div>
									<p class="piNameDiv">当前头像图片：</p>
									<p id="img" class="piInputDiv"><img width="200" src="upload/headphoto/${sessionScope.user.photoURL}"/></p>
									
    							
    								<br />
									<p class="piNameDiv">请选择头像图片：</p>
									<p class="piInputDiv"><input type="file" name="pic" onchange="if(TheImage.checkImageType(this.value)) {TheImage.preLoadImage('img', this.value);}"/></p>

								
								
								<div class="piLineDiv">
									<input type=submit value="上传新头像"/>
								</div>
    </div>
  </form>
  
  </div>
</div>
</div>
<div class="clear"></div>
<jsp:include flush="true" page="../include/footer.jsp"></jsp:include>

</div>
</body>
</html>
